package com.central.scheduler.dao.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.central.common.model.WorkerServer;
import com.central.db.mapper.SuperMapper;
import com.central.scheduler.dao.model.PluginDefine;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @author Tindy
 * @date 2021/7/3
 * @describe
 */
@Mapper
public interface PluginDefineMapper extends SuperMapper<PluginDefine> {

    /**
     * query by name and type
     *
     * @param pluginName
     * @param pluginType
     * @return
     */
    @Select("select * from plugin_define where plugin_name=#{pluginName} and plugin_type=#{pluginType}")
    List<PluginDefine> queryByNameAndType(@Param("pluginName") String pluginName, @Param("pluginType") String pluginType);
}